<html>
    <head>
            <title>Before</title>
    </head>
    <body>
        <script type="application/javascript">
            function go() {
                document.title = "After"
            }
        </script>
    </body>
</html>